Learning to Blame
نویسندگان
چکیده
Localizing type errors is challenging in languages with global type inference, as the type checker must make assumptions about what the programmer intended to do. We introduce N���, a data-driven approach to error localization based on supervised learning. N��� analyzes a large corpus of training data — pairs of ill-typed programs and their “�xed” versions — to automatically learn a model of where the error is most likely to be found. Given a new ill-typed program, N��� executes the model to generate a list of potential blame assignments ranked by likelihood. We evaluate N��� by comparing its precision to the state of the art on a set of over 5,000 ill-typed OC��� programs drawn from two instances of an introductory programming course. We show that when the top-ranked blame assignment is considered, N���’s data-driven model is able to correctly predict the exact sub-expression that should be changed 72% of the time, 28 points higher than OC��� and 16 points higher than the state-of-the-art SHE��L�� tool. Furthermore, N���’s accuracy surpasses 85% when we consider the top two locations and reaches 91% if we consider the top three.
منابع مشابه
Detecting Expressions of Blame or Praise in Text
The growth of social networking platforms has drawn a lot of attentions to the need for social computing. Social computing utilises human insights for computational tasks as well as design of systems that support social behaviours and interactions. One of the key aspects of social computing is the ability to attribute responsibility such as blame or praise to social events. This ability helps a...
متن کاملOn the prospects for a blame-free medical culture.
Official policy-making bodies and experts in medical error have called for a shift in perspective to a blame-free culture within medicine, predicated on the basis that errors are largely attributable to systems rather than individuals. However, little is known about how the lived experience of blame in medical care relates to prospects for such a shift. In this essay we explore the benefits and...
متن کاملThe effectiveness of mindfulness-based education on self-blame and working memory in adolescents
The aim of this study was to investigate the effect of mindfulness-based education on two structures related to cognition, namely self-blame and working memory in adolescents. The research design was quasi-experimental with a control group. Participants included 30 people (two groups of 15 people) from adolescents aged 14 to 18 years who volunteered to participate in the study. They responded t...
متن کاملFrom blaming to proactively changing the future: the leader's safety challenge.
Simplifying to the point of blaming limits learning and the ability to prevent similar occurrences in the future. Often, the characteristics of the blame culture are very subtle and what appears to be valuable work is actually a subtle sign of the blame game. Leaders must change the language to a proactive, future preventative state rather than focusing on the past and looking for single causes...
متن کاملResponsibility without Blame for Addiction
Drug use and drug addiction are severely stigmatised around the world. Marc Lewis does not frame his learning model of addiction as a choice model out of concern that to do so further encourages stigma and blame. Yet the evidence in support of a choice model is increasingly strong as well as consonant with core elements of his learning model. I offer a responsibility without blame framework tha...
متن کاملA Model-Based Approach to Blame Assignment: Revising the Reasoning Steps of Problem Solvers
Blame assignment is a classical problem in learning and adaptation. Given a problem solver that fails to deliver the behaviors desired of it, the blame-assignment task has the goal of identifying the cause(s) of the failure. Broadly categorized, these causes can be knowledge faults (errors in the organization, content, and representation of the problemsolver's domain knowledge) or processing fa...
متن کامل